<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
	<title>分派巡检计划</title>
	<t:base type="jquery,easyui,tools,DatePicker"></t:base>
	<script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
</head>
<body>
<t:formvalid formid="assignEngineer" action="zyInspectionPlanController.do?doBatchAssignEngineer" dialog="true" usePlugin="password" layout="table" tiptype="3" beforeSubmit="beforeSubmit">
	<input type="hidden" value="${planIds }" name="planIds" id="planIds"/>
	<input type="hidden" value="${company }" name="company" id="company" />
	<table>
		<tr>
			<td colspan="2" align="center">您已选择了${ipCount}个巡检计划</td>
		</tr>
		<tr>
			<td>
				<label>工程师:</label>
			</td>
			<td>
				<input name="engineer.id" type="hidden" id="engineerId">
				<input name="engineerName" class="inputxt" id="engineerName" readonly="readonly" datatype="*" />
				<t:choose hiddenName="engineerId" hiddenid="id" url="zyInspectionPlanController.do?zyChooseEngineerList" name="engineerList" paramIds="company,planIds"
					icon="icon-search" title="工程师" inputTextname="engineerName" textname="name"  isclear="true" width="1120px" height="500px" fun="chooseBack"></t:choose>
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">工程师</label>
			</td>
		</tr>
		<tr>
			<td>
				<label>email:</label>
			</td>
			<td>
				<span id="email"></span>
			</td>
		</tr>
<%--		<tr>--%>
<%--			<td>--%>
<%--				<label>预约服务日期:</label>--%>
<%--			</td>--%>
<%--			<td>--%>
<%--				<input id="orderBeginTime" class="Wdate" onClick="WdatePicker({minDate:'%y-&M-{%d+1}',maxDate:'#F{$dp.$D(\'orderEndTime\')}'})" --%>
<%--					name="orderBeginTime" type="text" style="width: 150px" class="inputxt" datatype="*">--%>
<%--					至--%>
<%--				<input id="orderEndTime" class="Wdate" onClick="WdatePicker({minDate:'#F{$dp.$D(\'orderBeginTime\')}'})" --%>
<%--					name="orderEndTime" type="text" style="width: 150px" class="inputxt" datatype="*">--%>
<%--				<span class="Validform_checktip"></span>--%>
<%--				<label class="Validform_label" style="display: none;">服务日期</label>--%>
<%--			</td>--%>
<%--		</tr>--%>
	</table>
</t:formvalid>
</body>
<script type="text/javascript">
$(function(){
});
function beforeSubmit(){
	var flag = true;
	$.ajax({
		url : "zyInspectionPlanController.do?doJudgeForBatchRefuseMission",
		data : {
			planIds : $("#planIds").val()
		},
		cache : false,
		dataType : 'json',
		type : 'POST',
		async : false,
		success : function(data){
			if(!data.success){
				flag = false;
				tip(data.msg);
			}
		}
	});
	return flag;
}
function chooseBack(){
	var email = iframe.getengineerListSelections("email");
	$("#email").html(email);
	return true;
}
</script>
